package struts.ext.util;

import struts.ext.annotation.Action;
import struts.ext.commons.lang.reflect.ClassWrapper;


public class DefaultClassFilterImpl implements ClassFilter {
	public boolean nameMatches(String name) {
		if (Strings.matches(".*[A][c][t][i][o][n]",name))
			return true;
		return false;
	}
	
	public boolean classMatches(Class<?> clazz) {
		return ClassWrapper.isChildOf(Action.class, clazz) ;
	}
}
